package cz.proks.easyhelpdesk.gae.core.db;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Component;

import cz.proks.easyhelpdesk.api.EmailApi;
import cz.proks.easyhelpdesk.api.config.Configuration;
import cz.proks.easyhelpdesk.api.model.Email;

@Component(Configuration.Core.DB.EMAIL_API)
public class EmailApiImpl extends BaseHelpdeskApiImpl<Email> implements EmailApi {
	private Logger log = LoggerFactory.getLogger(getClass());
	
	@Autowired
	@Qualifier(Configuration.DB.EMAIL_API)
	private EmailApi dbApi;

	@Override
	protected EmailApi getDbApi() {
		return dbApi;
	}
}
